package com.xuecheng.manage_course.feign.cms;

import com.xuecheng.framework.domain.system.SysDictionary;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 系统字典微服务远程调用接口
 */
@FeignClient(value = "XC-SERVICE-MANAGE-CMS")
public interface SysDictionaryFeign {
    /**
     * 根据SysDictionaryType在XC-SERVICE-MANAGE-CMS服务中查询对应类型的数据字典
     * @param type 数据字典类型
     * @return 数据字典
     */
    @GetMapping("/sys/dictionary/get/{type}") // 标识这个远程调用是get请求
    SysDictionary findSysDictionaryByType(@PathVariable("type") String type) throws Exception;
}
